package kthttp

import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.create

fun testKtHttpV1(){
    val api: ApiService = KtHttpV1.create(ApiService::class.java)
    val data: RepoList = api.repos(lang = "Kotlin", since = "weekly")
    println(data)
}

fun testKtHttpV2(){
    val data: RepoList = KtHttpV2.create<ApiServiceV2>().repos(
        lang = "Kotlin",
        since = "weekly"
    )

    println(data)
}

fun testKtHttpV3(){
    val api: ApiServiceV3 = KtHttpV3.create(ApiServiceV3::class.java)
    val data: RepoList = api.reposSync(lang = "Kotlin", since = "weekly")
    println(data)
}

fun testKtHttpV4(){

}

fun testKtHttpV5(){

}

fun testKtHttpV6(){

}